<@compress single_line=isCompress>
<script type="text/javascript">
(function(){
    var _location = document.location;
    var _rootPath = _location.protocol + '//' + _location.hostname;
        _rootPath+= _location.port == '' ? '' : ':' + _location.port;
    window.basePath = _rootPath + '${base}';
    window.rootPath = _rootPath + '${root}';
    window.uploadUrl = '${uploadUrl}';
    window.resVersion = '${v}';
    <#if user??>window.user = {nick:'${user.nick!'""'}', userId:${user.userId!'""'}, username:'${user.username!'""'}', email:'${user.email!'""'}', postId:${user.postId!'""'},roleId:${user.roleId!'""'},parentRole:${user.parentRole!'""'}};</#if>
})();
</script>
</@compress>